package org.spiderflow.users.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * Created by Nicky.Tang on 2020/4/4 9:38 PM
 *
 * @since 02.12.10
 */
@Data
@TableName(value = "sp_users")
public class Users {
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "手机号")
    private String userPhone;

    @ApiModelProperty(value = "头像")
    private String userHeaderId;
    private String userHeaderUrl;

    @ApiModelProperty(value = "支付密码")
    private String userPassword;

    @ApiModelProperty(value = "注册时间")
    private String createTime;

    @ApiModelProperty(value = "1-启用 其他-停用")
    private Integer dataStatus;

    @TableField(exist = false)
    @ApiModelProperty(value = "最近一次登录时间")
    private String lastLoginTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户权限信息")
    private List<UsersPermission> permissions;

}
